<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="referrer" content="never">
    <title>粘底footer</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        ul {
            list-style: none;
        }

        html, body {
            height: 100%;
        }

        body {
            display: flex;
            flex-direction: column;
            /* justify-content: space-between; */
        }

        .content {
            height: 300px;
            font-size: 100px;
            text-align: center;
            line-height: 300px;
            background-color: #f0f;

            flex-shrink: 0;
        }

        footer {
            margin-top: auto;
            font-size: 40px;
            text-align: center;
            line-height: 100px;
            background-color: #0f0;
        }
    </style>
</head>
<body>
    <div class="content">content</div>
    <footer>footer</footer>

    <script type="text/javascript">
        
    </script>
</body>
</html>